<%@ page import="dao.tro.Flight" %>
<div class="flight">
    <% Flight flight = (Flight) request.getAttribute("singleFlight");%>
    <div class="title"> Flight #<%= flight.getId() %>, time: <%= flight.getT() %> </div>
    <div class="clear"></div>
    <div style="float: left; padding-left: 15px">
        <div align="center"><strong>From</strong></div>
        <div align="center"><%= flight.getDepartureAirport().getName()%></div>
        <div align="center"><%= flight.getDepartureAirport().getInCountry().getName()%></div>
    </div>
    <div style="float: right; padding-right: 15px">
        <div align="center"><strong>To</strong></div>
        <div align="center"><%= flight.getDestinationAirport().getName()%></div>
        <div align="center"><%= flight.getDestinationAirport().getInCountry().getName()%></div>
    </div>
    <div style="padding-left: 195px">
        <img src="resources/BlackPlane1.png" height="10%" align="middle" alt="this is plane"/>
    </div>
</div>